package cn.weekimwee.firstlineofcodeforkotlin.unit4

import android.os.Bundle
import cn.weekimwee.firstlineofcodeforkotlin.BaseActivity
import cn.weekimwee.firstlineofcodeforkotlin.R

class NewsContentActivity : BaseActivity() {

    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_news_content)
        val title = intent.getStringExtra("title")
        val content = intent.getStringExtra("content")
        (supportFragmentManager.findFragmentById(R.id.news_content_fragment) as NewsContentFragment).refresh(title,content)
    }
}
